package main

import (
	regexp2 "regexp"
	"fmt"
)

func main() {
	// 筛选所有小数正则
	regexp := regexp2.MustCompile(`\d+\.\d+`)
	res := regexp.FindAllStringSubmatch("212.121. 123.123", -1)
	fmt.Println(res) // [[212.121] [123.123]]
}
